When your Cloud or an
application needs to save data for later use
or for analysis, you have several options. In this module, we'll
discuss connecting to various storage
services in Google Cloud, and how to design for scale. Cloud Run can serve a lot of
clients at the same time, and you're storage backend
needs to be prepared. On a traditional server, you can store data directly
on the server instance. On Cloud Run, that's
also possible. The disposable containers
on Cloud Run have a small file system
that you can write to. This file system is in memory. In other words, file system
writes will consume memory, but disappears when the
container is shut down. This means that
you'll need to store persistent data in a
downstream system. For example, you can store
binary data in Cloud Storage, session data in Redis, the memory store
on Google Cloud, and your application data
in a relational database, or use Cloud Spanner
and Firestore. The key thing is to
remember that although you can write data to a
disk on Cloud Run, that data does not persist beyond the lifetime
of the container. In this module, you'll learn how to connect
your application, declare SQL, memory
store, Cloud Storage, Cloud Spanner, or Firestore, so that you can persist data beyond the lifetime
of its container.